<template>
	<view class="search-bar">
		 <view class="search-input" @click="clickHandler">
		 	<uni-icons type="search" size="17"></uni-icons>
		 	<text class="placeholder">搜索</text>
		 </view>
	</view>
</template>

<script>
	export default {
		name:"search-bar",
		data() {
			return {
				
			};
		},
		methods: {
			clickHandler() {
				this.$emit('click')
			}
		}
	}
</script>

<style lang="scss">
.search-bar {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 50px;
	background-color: #e9434f;
	.search-input {
		display: flex;
		justify-content: center;
		align-items: center;
		border-radius: 25px;
		font-size: 12px;
		width: 95%;
		height: 35px;
		background-color: #fff;
		.placeholder {
			font-size: 15px;
			margin-left: 5px;
		}
	}
	
}
</style>